import java.util.Scanner;

public class Student {
    private String name;
    private String number;
    private String phone;
    private String email;
    private char gender;

    void setName(String name) {
        this.name = name;
    }

    void setNumber(String number) {
        this.number = number;
    }

    void setPhone(String phone) {
        this.phone = phone;
    }

    void setEmail(String email) {
        this.email = email;
    }

    void setGender(char gender) {
        this.gender = gender;
    }
    void study(){
        System.out.println("学生"+this.name+"开始学习");
    }
    Student(boolean flag) {
        System.out.println("请输入创建的学生信息");
    }
    Student(String name,String number){
        this.name=name;
        this.number=number;
    }
    Student() {
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入学生姓名，回车结束输入");
        setName(reader.next());
        System.out.println("请输入学生学号，回车结束输入");
        setNumber(reader.next());
        System.out.println("请输入学生电话，回车结束输入");
        setPhone(reader.next());
        System.out.println("请输入学生邮箱，回车结束输入");
        setEmail(reader.next());
        System.out.println("请输入学生性别，回车结束输入");
        setGender(reader.next().charAt(0));
        System.out.println("信息输入完毕！");
        study();
    }

}
